Nested
data class Nested(val type: NavigationSpec.Nested.Type = Type.Add, val containerView: UIView, val nested: () -> UIViewController, val constraints: (UIView, UIView) -> List<NSLayoutConstraint>? = null) : NavigationSpec
Adds a nested UIViewController to a container UIView.
Parameters
type
The Nested.Type of presentation
containerView
The UIView to which the UIViewController should be added. Must be a child of the parent
nested
Function to create the UIViewController to add to the container view
constraints
Optional function that takes the child and container view and returns the constraints to set. If left empty, the child will default to match the container view size
Constructors
Link copied to clipboard
constructor(type: NavigationSpec.Nested.Type = Type.Add, containerView: UIView, nested: () -> UIViewController, constraints: (UIView, UIView) -> List<NSLayoutConstraint>? = null)